package org.surelink.radius.console;


import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
import org.surelink.radius.console.message.Request;
import org.surelink.radius.console.message.Response;

public abstract class BaseProcess
{

    @Autowired
    protected Gson gson;

    private String operate;

    public String getOperate()
    {
        return operate;
    }

    public void setOperate(String operate)
    {
        this.operate = operate;
    }

    public BaseProcess(String operate)
    {
        this.operate = operate;
    }

    public BaseProcess()
    {
    }

    public abstract Response process(Request req) throws Exception;
}
